package cn.ffcs.product.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import java.util.ArrayList;

import cn.ffcs.base.model.BaseEntity;
import cn.ffcs.common.model.Attach;

/**
 * 产品目录实体类：定义基本属性<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">g.huangjx</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:2009-2-26</td>
 * <td>修改人:g.huangjx</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author g.huangjx
 * @version $Id$
 */

public class Product extends BaseEntity
{
    /** 产品名称 **/
    private String name;
    /** 所属产品 **/
    private String pproduct;
    /** 所属产品名字 **/
    private String pproductName;
    /** 产品简介 **/
    private String briefIntroduction;
    /** 功能特点描述 **/
    private String description;
    /** 访问地址 **/
    private String linkUrl;
    /** 是否新产品 **/
    private String isNew;
    /** 产品图片 **/
    private String img;
    /** 创建人 **/
    private String creator;
    /** 产品分类名称 **/
    private int childCount;
    // Constructors
    protected Integer id;
    /** 产品属性 **/
    private Set productInfos = new HashSet();
    /** 产品负责人 **/
    private Set productManagers = new HashSet();
    /** 产品负责人 **/
    private List<ProductReference> productReferences = new ArrayList<ProductReference>();
    /** 所在目录 **/
    private List prodSorts = new ArrayList();
    /** 产品附件 **/
    private List<Attach> attachs = new ArrayList();
    private String procinstId;
    private String isClient;
    private String reqCode;
    
    public List<Attach> getAttachs()
    {
        return attachs;
    }

    public void setAttachs(List<Attach> attachs)
    {
        this.attachs = attachs;
    }

    public List getProdSorts()
    {
        return prodSorts;
    }

    public void setProdSorts(List prodSorts)
    {
        this.prodSorts = prodSorts;
    }

    /** default constructor */
    public Product()
    {
    }

    /** minimal constructor */
    public Product(int id)
    {
        this.id = id;
    }

    /** full constructor */
    public Product(int id, String name, String pproduct,
            String briefIntroduction, String description, String linkUrl,
            String img, String creator,String isNew)
    {
        this.id = id;
        this.name = name;
        this.pproduct = pproduct;
        this.briefIntroduction = briefIntroduction;
        this.description = description;
        this.linkUrl = linkUrl;
        this.img = img;
        this.creator = creator;
        this.isNew=isNew;
    }

    // Property accessors

    public String getName()
    {
        return this.name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getPproduct()
    {
        return this.pproduct;
    }

    public void setPproduct(String pproduct)
    {
        this.pproduct = pproduct;
    }

    public String getBriefIntroduction()
    {
        return this.briefIntroduction;
    }

    public void setBriefIntroduction(String briefIntroduction)
    {
        this.briefIntroduction = briefIntroduction;
    }

    public String getDescription()
    {
        return this.description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getLinkUrl()
    {
        return this.linkUrl;
    }

    public void setLinkUrl(String linkUrl)
    {
        this.linkUrl = linkUrl;
    }

    public String getImg()
    {
        return this.img;
    }

    public void setImg(String img)
    {
        this.img = img;
    }

    public String getCreator()
    {
        return this.creator;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public int getChildCount()
    {
        return childCount;
    }

    public void setChildCount(int childCount)
    {
        this.childCount = childCount;
    }

    public String getPproductName()
    {
        return pproductName;
    }

    public void setPproductName(String pproductName)
    {
        this.pproductName = pproductName;
    }

    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Set getProductInfos()
    {
        return productInfos;
    }

    public void setProductInfos(Set productInfos)
    {
        this.productInfos = productInfos;
    }

    public Set getProductManagers()
    {
        return productManagers;
    }

    public void setProductManagers(Set productManagers)
    {
        this.productManagers = productManagers;
    }

    /**
     * @return the productReferences
     */
    public List<ProductReference> getProductReferences()
    {
        return productReferences;
    }

    /**
     * @param productReferences the productReferences to set
     */
    public void setProductReferences(List<ProductReference> productReferences)
    {
        this.productReferences = productReferences;
    }

    public String getIsNew()
    {
        return isNew;
    }

    public void setIsNew(String isNew)
    {
        this.isNew = isNew;
    }

	public String getProcinstId() {
		return procinstId;
	}

	public void setProcinstId(String procinstId) {
		this.procinstId = procinstId;
	}

	public String getIsClient() {
		return isClient;
	}

	public void setIsClient(String isClient) {
		this.isClient = isClient;
	}

	public String getReqCode() {
		return reqCode;
	}

	public void setReqCode(String reqCode) {
		this.reqCode = reqCode;
	}

}
